package boot3.service.impl;

import boot3.mapper.NoticeUserMapper;
import boot3.pojo.NoticeUser;
import boot3.service.NoticeUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeUserServiceImpl implements NoticeUserService {
    @Autowired
    NoticeUserMapper noticeUserMapper;
    @Override
    public boolean updateNotice(String user_id) {
        return noticeUserMapper.updateNotice(user_id);
    }

    @Override
    public List<NoticeUserMapper> selectAll() {
        return noticeUserMapper.selectAll();
    }

    @Override
    public List<NoticeUser> selectById(String notice_id) {
        return noticeUserMapper.selectById(notice_id);
    }

    @Override
    public boolean isRead(String user_id, String notice_id) {
        return noticeUserMapper.isRead(user_id, notice_id);
    }
}
